@import './publicHeader.scss';
@import './publicFooter.scss';


body{
    background-color: #ededed;
}
.empty-cart{
    display: none;
    font-size: 30px;
}
.cart-warp{
    border: 1px solid #dbdbdb;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    margin-top: 20px;
    >h3{
        height: 60px;
        line-height: 60px;
        padding-left: 30px;
        color: #646464;
        font-size: 18px;
    }
    >.props{
        background-color: #f5f5f5;
        font-size: 12px;
        color: #838383;
        height: 38px;
        border-top: 1px solid #dbdbdb;
        border-bottom: 1px solid #dbdbdb;
       display: flex;
       justify-content: space-between;
       align-items: center;
       padding-left: 30px;
       >.title-right{
           display: flex;
           >span{
               width: 137px;
               text-align: center;
           }
       }
    }
    >.shop-list{
        margin: 0;
        >li{
            position: relative;
            display: flex;
            justify-content: space-between;
            padding: 22px 0;
            >.checked{
                position: absolute;
                left: 30px;
                top: 57px;
                width: 15px;
                height: 15px;
                border: 1px solid #999;
                border-radius: 50%;
                cursor: pointer;
                overflow: hidden;
                text-align: center;
                line-height: 15px;
                >input{
                    margin: -1px 0 0 -1px;
                    width: 17px;
                    height: 17px;
                }
            }
            >.item-left{
                margin-left: 74px;
                >.item{
                    display: flex;
                     img{
                        width: 78px;
                        height: 78px;
                        border: 1px solid #f0f0f0;
                    }
                    >.des{
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        margin-left: 20px;
                        >a{
                            font-size: 16px;
                            font-weight: 700;
                            color: #333;
                        }
                        >p{
                            margin: 5px 0;
                            font-size: 12px;
                            color: #999;
                        }
                    }
                }
            }
            >.item-right{
                display: flex;
                align-items: center;
                >div{
                    width: 137px;
                    text-align: center;
                    font-size: 12px;
                    color: #666;
                    height: 100%;
                    padding-top: 30px;
                    box-sizing: border-box;
                }
                >.count{
                    display: flex;
                    justify-content: center;
                    >.decriment,.increment{
                        cursor: pointer;
                        color: #828282;
                        font-style: normal;
                        width: 18px;
                        height: 18px;
                        text-align: center;
                        line-height: 16px;
                        border: 1px solid #d3d3d3;
                        border-radius: 50%;
                        font-size: 14px;
                        box-shadow: 0 0 5px 5px #e0e0e0;
                        font-weight: bolder;
                        user-select: none;
                        &:active{
                            background-color: #646464;
                        }
                        &.disable{
                            border-color: #efefef;
                            box-shadow: 0 0 5px 5px #fafafa;
                            color: #ccc;
                            cursor: not-allowed;
                            &:active{
                                background-color: transparent;
                            }
                        }
                    }
                    >.num{
                        margin:0 20px;
                        font-style: normal;
                    }
                    
                }
                >.price{
                    font-weight: bolder;
                }
                >.clear{
                    >a{
                        display: inline-block;
                        width: 22px;
                        height: 22px;
                        line-height: 22px;
                        border: 1px solid #e6e6e6;
                        border-radius: 50%;
                        cursor: pointer;
                    }
                }
            }
        }
    }
    >.checkedInfo{
        position: sticky;
        bottom: 0px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 25px;
        height: 80px;
        border-top: 1px solid #d9d9d9;
        font-size: 12px;
        >.left{
            display: flex;
            align-items: center;
            >label,span{
                color: #999;
                margin: 0 8px;
                cursor: pointer;
                &:hover{
                    color: #000;
                }
            }
        }
        >.right{
            display: flex;
            align-items: center;
            >div{
                height: 49px;
                padding: 0 23px;
                font-size: 12px;
                padding-top: 5px;
                &.num{
                    border-right: 1px solid #dbdbdb;
                }
                >h3{
                    span{
                        font-size: 14px;
                        font-weight: bolder;
                        color: #d44e44;
                        padding: 0 10px;
                    }
                }
                >h4{
                    color: #959595;
                    margin-top: 5px;
                }
            }
            >button{
                height: 50px;
                width: 130px;
                line-height: 50px;
                text-align: center;
                background-color: #7193e2;
                font-size: 16px;
                color: #fff;
                border-radius: 10px;
                border-style: none;
                outline: none;
                cursor: pointer;
                &:active{
                    background-color:#96ade4;
                }
            }
        }
    }
}

 .listContent{
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    >li{
        position: relative;
        width: 25%;
        padding: 45px 15px 0;
        box-sizing: border-box;
        flex-shrink: 0;
        border-right: 1px solid #dadada;
        border-bottom: 1px solid #dadada;
        min-height: 430px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: background-color .5s;
        a{
            display: flex;
            justify-content: center;
            >img{
                width: 80%;
            }
        }
        &:nth-child(4n){
            border-right:none;
        }
        &:hover{
            background-color:#e5e5e5;
        }
        >.huodong{
            position: absolute;
            right: 0;
            top: 0;
            padding: 3px 8px;
            background-color: rgba(255,0,0,.5);
            font-size: 12px;
        }
        >.title{
            width: 100%;
            margin-top: 20px;
            font-weight: bold;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        >p{
            width: 100%;
            height: 20px;
            font-weight: bold;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin: 10px 0;
            font-size: 12px;
            color: #999;
        }
        >.style{
            position: relative;
            display: flex;
            margin: 10px 0;
            >span{
                position: absolute;
                display: none;
                left: 50%;
                transform: translateX(-50%);
                top: -35px;
                font-size: 12px;
                color:#fafafa;
                background-color: rgb(146, 146, 118);
                width: 58px;
                height: 28px;
                text-align: center;
                line-height: 28px;
                border: 1px solid #dbdbdb;
                border-radius: 5px;
            }
            button{
                width: 95px;
                height: 38px;
                border: 1px solid #dbdbdb;
                background-color: rgb(179, 200, 135);
                border-radius: 7px;
                color: #fafafa;
                font-weight: 700;
                cursor: pointer;
                outline: none;
                &:hover{
                    background-color: rgb(154, 202, 57);
                }
                &:active{
                    background-color:rgba(154, 202, 57,.7);
                }
            }
        }
        >.price{
            font-size: 18px;
            font-weight: bolder;
            color: #d44d44;
            >i{
                font-size: 12px;
                font-weight: normal;
                color: #999;
                text-decoration:line-through;
            }
        }
       
    }
}

.delShop{
    position: fixed;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    >div{
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 300px;
        height: 175px;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        user-select: none;
        >h3{
            height: 35px;
            line-height: 35px;
            text-align: center;
            background-color: #b4b2b2;
            font-size: 18px;
            color: #c56963;
        }
        >.choose{
            display: flex;
            justify-content: space-around;
            margin-top: 80px;
            >h3{
                width: 68px;
                height: 38px;
                line-height: 38px;
                text-align: center;
                font-size: 16px;
                border: 1px solid #dbdbdb;
                border-radius: 10px;
                cursor: pointer;
                &.refalse{
                    color: #999;
                }
                &.sure{
                    background-color: #809bdb;
                    color: #fff;
                }
                &:hover{
                    box-shadow: 0 0 10px 5px #c56963 inset;
                }
            }
        }
    }
}